home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
cbibcode.arc
/
SETMEM.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1991-08-05
|
331 b
|
11 lines
/* setmem.c, from p.160 of Turbo C Bible */
/* Sets a specified number of bytes of a buffer to a given value. */
#include <stdio.h>
#include <mem.h>
static char buffer[41]; /* Destination buffer */
main()
{
setmem(buffer, 40, 'Z');
buffer[40] = '\0';
printf("The buffer now contains: %s\n", buffer);
}